package com.special.threademo.netty.multiClient;

import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.SimpleChannelInboundHandler;

import java.time.LocalDateTime;

/**
 * Created with IDEA2020.3
 * author:LiuYC
 * DateTime:2021/1/27  11:12
 */
public class MyChatClientHandler extends SimpleChannelInboundHandler<String> {
    @Override
    protected void channelRead0(ChannelHandlerContext ctx, String msg) throws Exception {
       // System.out.println(ctx.channel().remoteAddress());
        System.out.println("client output" + msg);
       // ctx.writeAndFlush("from client" + LocalDateTime.now());
    }

}
